package cn.idietrade.idietradegoodsmodule8002.service.feignservice;

import cn.idietrade.common.utils.ReturnResultData;
import cn.idietrade.common.utils.SecondPage;
import cn.idietrade.idietradegoodsmodule8002.service.feignservice.impl.ESGoodsFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(value = "es-module",fallback = ESGoodsFeignFallback.class)
public interface ESGoodsFeignService {
    @RequestMapping("/goodsShow")
    ReturnResultData<SecondPage> goodsShow(@RequestParam(value = "pageNum",required = false)   Integer pageNum,
                                           @RequestParam(value = "pageSize",required = false)  Integer pageSize,
                                           @RequestParam(value = "keyword",required = false)   String keyword,
                                           @RequestParam(value = "cityId",required = false)    Integer cityId,
                                           @RequestParam(value = "goodsType",required = false) Integer goodsType);

    @RequestMapping("/goodsAllAddES")
    ReturnResultData goodsAllAddES(@RequestParam(value = "keyword",required = false)String keyword,
                                   @RequestParam(value = "cityId",required = false)Integer cityId);
}
